package face.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import face.dao.user.UserMapper;
import face.pojo.User;
import face.service.UserService;
import face.util.CipherUtil;

@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;
	//用户查询
	public User getUser(User user) {
//		String pwd = user.getUserPwd();
//		String userPwd = "";
//		CipherUtil cipher = new CipherUtil();
//		userPwd = cipher.generatePassword(pwd);
//		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>"+userPwd);
		return userMapper.getUser(user);
	}
	public int addUser(User user) {
		
		return userMapper.addUser(user);
	}
	public int updateUser(User user) {
		// TODO Auto-generated method stub
		return userMapper.updateUser(user);
	}
	

}
